<template>
  <div class="wfooter">
    <div class="foot-contact">
        <h3>关注我们</h3>
        <div class="bdsharebuttonbox bdshare-button-style0-16">
        <a href="javascript:void(0);" class="bds_weixin" data-cmd="weixin" title="分享到微信" :style="share1"></a>
        <a href="javascript:void(0);" class="bds_weixin" data-cmd="weixin" title="分享到微信" :style="share2"></a>
        <a href="javascript:void(0);" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友" :style="share3"></a>
        </div>
        <h1 class="gsname">
          未来家智能科技（昆山）有限公司
          <p>Wei Lai Jia Smart Technology Co.,Ltd.</p>
        </h1>
        <div class="add">
          公司地址：江苏省昆山市泰鸿花园1号
        </div>
        <div class="foot-rgt">
          <span>联系我们&nbsp;&nbsp;&nbsp;0512-36919111</span>
          &nbsp;&nbsp;&nbsp;&nbsp;
          <span>咨询投诉&nbsp;&nbsp;&nbsp;0512-36919119</span>
        </div>
    </div>
    <div class="foot-bottom">
      <div class="foot-content">
          Copyright 2018 Elsees All Rights Reserved
      </div>
    </div>
</div>
</template>

<script>
export default {
  data () {
    return {
      share1: {
        backgroundImage: 'url(' + require('@/assets/images/share1.png') + ')',
        backgroundRepeat: 'no-repeat',
        backgroundSize: '30px 30px',
        backgroundPosition: '50% 50%'
      },
      share2: {
        backgroundImage: 'url(' + require('@/assets/images/share2.png') + ')',
        backgroundRepeat: 'no-repeat',
        backgroundSize: '30px 30px',
        backgroundPosition: '50% 50%'
      },
      share3: {
        backgroundImage: 'url(' + require('@/assets/images/share3.png') + ')',
        backgroundRepeat: 'no-repeat',
        backgroundSize: '30px 30px',
        backgroundPosition: '50% 50%'
      }
    }
  },
  beforeCreate () {
    const _this = this
    setTimeout(() => {
      _this.setup()
    }, 0)
  },
  methods: {
    setup () {
      window._bd_share_config = {
        'common': {
          'bdSnsKey': {},
          'bdText': '',
          'bdMini': '2',
          'bdPic': '',
          'bdStyle': '0',
          'bdSize': '16'
        },
        'share': {}
      }
      const s = document.createElement('script')
      s.type = 'text/javascript'
      s.src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)
      document.body.appendChild(s)
    }
  }
}
</script>
